package com.yyx.lgb.controller;

import com.yyx.lgb.model.vo.common.Result;
import com.yyx.lgb.model.vo.common.ResultCodeEnum;
import com.yyx.lgb.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: SmsController
 * Package: com.yyx.lgb.controller
 * Description:
 *
 * @Author: yyx
 * @Create: 2025/8/12 - 10:47
 */
@RestController
@RequestMapping("api/user/sms")
public class SmsController {
    @Autowired
    private SmsService smsService;
    @GetMapping(value = "/sendCode/{phone}")
    private Result sendValidateDateCode(@PathVariable String phone){
            smsService.sendValidateDateCode(phone);
            return Result.build(null, ResultCodeEnum.SUCCESS);
    }
}
